﻿@inherits Statiq.Razor.StatiqRazorPage<IEnumerable<IDocument>>

@foreach (IDocument item in Model)
{
    @if (!String.IsNullOrEmpty(item.GetString(WebKeys.Title)))
    {
        <div class="latest_container latest_container--news">
            <div class="latest_date d-flex align-items-center justify-content-center text-center newstype-community">
                <span>.NET Foundation Blog</span>
            </div>
            <div class="latest_meta d-flex flex-column justify-content-center">
                <h3 class="latest_title"><a href="@Context.GetLink(item).Substring(1)" 
                                            title="@item.GetString(WebKeys.Title)">@item.GetString(WebKeys.Title)</a></h3>
                <p class="latest_copy">
                    @Html.Raw(DotnetFoundationWeb.StringUtils.TruncateHtml((await item.GetContentStringAsync()).ToString(), 150))
                </p>
            </div>
        </div>
    }
}
